package com.ruoyi.recycle.dto;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 问答库设置对象 essay_question
 *
 * @author Wubk
 * @date 2022-05-22
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class EssayQuestionDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 租户号
     */
    private Long id;

    /**
     * 问题
     */
    @TableField(value = "question",condition = SqlCondition.LIKE)
    private String question;

    /**
     * 答案
     */
    private String answer;

    /**
     * 分类
     */
    private String type;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date searchTimeBegin;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date searchTimeEnd;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedTime;

    private Integer currentPage = 1;

    private Integer pageSize = 10;

}
